package Set;

public class Dog implements Comparable<Dog>{
	private String name;
	private int age;
//	static {
//		int r = 9;
//	}
//	static int r;
	public Dog(String name,int age){
		this.setName(name);
		this.setAge(age);
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
//	public static void main(String[] args) {
//		int b =5;
//		int c = 6;
//		int d = b+++ ++c;
//		//b = ++b;
//		
//		System.out.println(r);
//	}
	@Override
	public String toString() {
		return "Dog [name=" + name + ", age=" + age + "]";
	}
@Override
public int compareTo(Dog o) {
	// TODO Auto-generated method stub
	return 0;
}
	
}
